//
// Created by Administrator on 2021/9/29.
//

#ifndef MRENDER_FILEUTIL_H
#define MRENDER_FILEUTIL_H
#include <fstream>
#include <sstream>
#include "String.h"
#include <vector>
#include "MAssert.h"
#include "Log.h"

class FileUtil {
public:
    /**
     * 读取文件，返回为字符串
     * @param filePath 文件路径
     * @return 字符串
     */
    static String readStrFromFile(String filePath);

    /**
     * 读取文件中的每一行并返回
     * @param filePath 文件路径
     * @return 每行数据
     */
    static std::vector<String> readLineStrFromFile(String filePath);
};

#endif //MRENDER_FILEUTIL_H